<?php
namespace common\models\shop;

use common\models\Common;
use common\models\user\User;
use yii\db\ActiveRecord;

class GoodsOrderReturn extends Common
{
    public static function tableName()
    {
        return '{{%goods_order_refund}}';
    }

    public function getUser() {
        return $this->hasOne(User::className(), ['id' => 'user_id']);
    }

    public function getGoods() {
        return $this->hasOne(Goods::className(), ['id' => 'goods_id']);
    }

    public function getOrder() {
        return $this->hasOne(GoodsOrder::className(), ['id' => 'order_id']);
    }


}